//
//  PhotoWallCell.m
//  CHVolunteer
//
//  Created by 李晓俊 on 2019/4/17.
//  Copyright © 2019 李晓俊. All rights reserved.
//

#import "PhotoWallCell.h"

@implementation PhotoWallCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self = [[NSBundle mainBundle]loadNibNamed:@"PhotoWallCell" owner:self options:nil].lastObject;
        
//        self.photo.userInteractionEnabled = YES;
//        UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPress:)];
//        [self.photo addGestureRecognizer:longPress];
    }
    return self;
}
- (void)longPress:(UILongPressGestureRecognizer *)longPress {
    if (self.deleteClick) {
        self.deleteClick(@"1");
    }
}
@end
